VtFrame


Create a Frame widget

Syntax

VtFrame object_name [options]

Description

Creates a Frame widget which places a three-dimensional border around a single child. Returns the widget name of the Frame.

The border can have different shadow types in the graphical environment, but in the character mode server it is just a single line.

Options

-shadowType IN | OUT | ETCHED_IN | ETCHED_OUT (CSG)
Sets the shadow type of the frame.

-title string (CS)
Puts the title at the top of the frame widget. This is not supported in character mode.

Example

The following code produces a RowColumn widget containing four PushButons. This RowColumn widget is enclosed within a frame.

set app [VtOpen demo]

set form [VtFormDialog $app.fn -title "VtFrame Demo" ]
set frame [VtFrame $form.frame ]
set rowcol [VtRowColumn $frame.rowcol -numColumns 2]

VtPushButton $rowcol.but1 -label "Apples" 
VtPushButton $rowcol.but2 -label "Oranges"
VtPushButton $rowcol.but3 -label "Bananas"
VtPushButton $rowcol.but4 -label "Kumquats"

VtShow $form
VtMainLoop

This code produces the following:

See also: